// pages/order/order.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    selectedIndex:1,
    tabName:[
        {index:0,name:'待付款'},
        {index:1,name:'待发货'},
        {index:2,name:'待签收'},
        
    ],
  },
  getTabIndex(e){
    const  selectedIndex  = e.detail;
    // console.log("selectedIndex",selectedIndex);
    // this.setData({selectedIndex:selectedIndex})
    this.setData({selectedIndex})
  },



  onLoad(option){
    
  },
  onShow(){
    const token = wx.getStorageSync("token");
    const isLogin  = false;
    if(!token){
        wx.navigateTo({
          url: '/pages/login/login',
        })
    }else{
      this.queryGoodsList()
    }
  }

  
})